package org.os.framework.oauth.entity;

import java.util.Map;

import javax.persistence.Entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;
import org.os.framework.jpa.BaseEntity;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 权限表
 * @author
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@DynamicInsert
@DynamicUpdate
@Where(clause = "deleted=0")
@Entity(name = "t_permission")
public class Permission extends BaseEntity {

    /**
     * 角色
     */
    private String role;

    /**
     * 权限
     */
    private Map<String, String> scopes;

}
